function ajaxSubmit(url, params, datas, onSuccessFunc, onErrorFunc, needMask,
		maskSpot, maskMsg) {
	if (needMask) {
		//$.mask(maskMsg, $(maskSpot));
	}
	$.ajax({
		type : "POST",
		url : url,
		data : {
			"params" : JSON.stringify(params),
			"submit" : JSON.stringify(datas)
		},
		dataType : "json",
		success : function(data, textStatus) {
			if (needMask) {
				//$.unmask();
			}
			if (onSuccessFunc)
				onSuccessFunc(data, textStatus);
		},
		error : function(msg) {
			if (needMask) {
				//$.unmask();
			}
			if (onErrorFunc)
				onErrorFunc(msg);
		}
	});
}